﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="hdEdit.aspx.cs" Inherits="GPCSC.Web.sjsbyes.hdEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
       <title>淮安市领导干部下基层活动网站</title>
<meta name="KEYWords" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
<meta name="DEscription" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
       <link href="../Css/main.css" rel="stylesheet" type="text/css" />
    <link type="text/css" rel="Stylesheet" href="../Css/tableCss.css" />
       <script type="text/javascript" src="../scripts/jquery-1.6.2.min.js"></script>
    <script type ="text/javascript" src ="../scripts/datepicker/WdatePicker.js"></script>
    <script type="text/javascript" src="../Scripts/validator/jquery.validate.min.js"></script>
<script type="text/javascript" src="../Scripts/validator/messages_cn.js"></script>

    <script>
        function DateDiff() {    //sDate1和sDate2是2006-12-18格式
            var sDate1 = $("#MtxtD_bgyear").val();
            var sDate2 = $("#MtxtD_edyear").val();

            var aDate, oDate1, oDate2, iDays;
            aDate = sDate1.split("-")
            oDate1 = new Date(aDate[1] + '-' + aDate[2] + '-' + aDate[0])    //转换为12-18-2006格式  
            aDate = sDate2.split("-")
            oDate2 = new Date(aDate[1] + '-' + aDate[2] + '-' + aDate[0])
            iDays = parseInt(Math.abs(oDate1 - oDate2) / 1000 / 60 / 60 / 24)    //把相差的毫秒数转换为天数  
            return iDays
        } 
        function jsts() {
            document.getElementById("MtxtD_sdts").value = DateDiff();
        }
        $(document).ready(
        function () {
            $('#form1').validate({


        });
        }
        );

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="29" background="../images/1.gif"><table width="300" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="300" class="tittle">当前位置：发起活动操作界面</td>
      </tr>
    </table></td>
    <td align="right" background="../images/1.gif" style="padding-right:20px;">
    <a href="hdlist.aspx" class="returna">
        返回    
    </a>
    </td>
  </tr>
</table>

<%--    <div style="margin-top:20px; float:none;">
    <div style="text-align:left; width:50%;  height:50px; vertical-align:bottom; ">
    <img src="../images/right2.gif" />
    <strong style="color:#0F5A8C">活动操作</strong>
    </div>
    </div>--%>
     <div style=" width:650px; margin-right:50px; margin-left:50px;">
     <table class="table">
           <tr>
      <td class="td" style="background-color:#F1F6FA; width:200px;">
      活动名称：
      </td>
      <td class="td" style=" text-align:left">
      <input type="text" id="MtxtD_hdtitile" runat="server" style="width: 300px;" class="required" />
      <input type="text"  id="command" runat="server" style=" display:none" />
      </td>
      </tr>
                 <tr>
      <td class="td" style="background-color:#F1F6FA; width:200px;">
      所属年份：
      </td>
      <td class="td" style=" text-align:left">
      <input type="text" id="MtxtD_ssyear" runat="server" style="width: 300px;" class="number" />
      </td>
      </tr>
                     <tr>
      <td class="td" style="background-color:#F1F6FA; width:200px;">
      开始时间：
      </td>
      <td class="td" style=" text-align:left">
      <input type="text" id="MtxtD_bgyear" runat="server" style="width: 300px;" class="required" />
        <img  style="margin-bottom:0px;"  src="../Images/calendar.gif"  onclick="WdatePicker({el:'MtxtD_bgyear'})"/>
      </td>
      </tr>
                     <tr>
      <td class="td" style="background-color:#F1F6FA; width:200px;">
      结束时间：
      </td>
      <td class="td" style=" text-align:left">
      <input type="text" id="MtxtD_edyear" runat="server" style="width: 300px;" class="required" />
        <img  style="margin-bottom:0px;"  src="../Images/calendar.gif"  onclick="WdatePicker({el:'MtxtD_edyear'})"/>
        <input type="text" id="MtxtD_sdts" runat="server" runat="server" style=" display:none" />
      </td>
      </tr>
        <tr>
      <td class="td" style="background-color:#F1F6FA; width:200px;">
      活动简介：
      </td>
      <td class="td" style=" text-align:left">
      
       <asp:TextBox ID="MtxtD_hdjj" runat="server" CssClass="inputBoxBottom" TextMode="MultiLine"
                    Style="width: 300px; height: 80px;"></asp:TextBox>
      </td>
      </tr>
            <tr runat="server" id="buttontr">
      <td colspan="2" align ="center">
    <%--  <input type="button" value="计算时间" />--%>
          <asp:Button ID="Button1" runat="server" Text="保存" OnClientClick="jsts()" CssClass="buttonCss" 
              onclick="Button1_Click" />
          <input type="button" value="重置" class="buttonCss" onclick="window.location.reload();" style="margin-left:10px;" />
      </td>
      </tr>
     </table>
     </div>

    </div>
    </form>
</body>
</html>
